﻿using System;
using Business;
namespace ServicesDirectory.UserControl
{
    public partial class ServiceDetail2 : System.Web.UI.UserControl
    {

        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
              

        }

        /// <summary>
        /// Loads the refrence data.
        /// </summary>
        public void LoadRefrenceData()
        {
            cklBarriersCriterion.DataSource = ServiceBusiness.Instance.GetServiceBarriersCriterion();
            cklBarriersCriterion.DataTextField = "DataRef";
            cklBarriersCriterion.DataValueField = "RefValue";
            cklBarriersCriterion.DataBind();

            cklBenefitsCriterion.DataSource = ServiceBusiness.Instance.GetServiceBenefitsCriterion();
            cklBenefitsCriterion.DataTextField = "DataRef";
            cklBenefitsCriterion.DataValueField = "RefValue";
            cklBenefitsCriterion.DataBind();

            cklDisability.DataSource = ServiceBusiness.Instance.GetServiceDisabilityCriterion();
            cklDisability.DataTextField = "DataRef";
            cklDisability.DataValueField = "RefValue";
            cklDisability.DataBind();

            cklEthnicityCriterion.DataSource = ServiceBusiness.Instance.GetServiceEthnicityCriterion();
            cklEthnicityCriterion.DataTextField = "DataRef";
            cklEthnicityCriterion.DataValueField = "RefValue";
            cklEthnicityCriterion.DataBind();

            cklParticipationCriterion.DataSource = ServiceBusiness.Instance.GetOtherServiceParticipationCriterion();
            cklParticipationCriterion.DataTextField = "DataRef";
            cklParticipationCriterion.DataValueField = "RefValue";
            cklParticipationCriterion.DataBind();

            cklPersonalCircumstances.DataSource = ServiceBusiness.Instance.GetServicePersonalCircumstancesCriterion();
            cklPersonalCircumstances.DataTextField = "DataRef";
            cklPersonalCircumstances.DataValueField = "RefValue";
            cklPersonalCircumstances.DataBind();


        }
    }
}